package org.bigjava.novelplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.bigjava.novelplatform.entity.PurchasedChapter;

import java.util.List;

/**
* @author YKH
* @description 针对表【purchased_chapter】的数据库操作Mapper
* @createDate 2022-03-20 14:42:21
* @Entity org.bigjava.novelplatform.entity.PurchasedChapter
*/
public interface PurchasedChapterMapper extends BaseMapper<PurchasedChapter> {

    /**
     * 查询用户所有的章节购买记录
     * @param userId
     * @param bookId
     * @return
     */
    List<PurchasedChapter> selectByUserIdAndBookId(@Param("userId") Integer userId, @Param("bookId") Integer bookId);
}




